Enum Domains and Trusts

Enum Domains

Get-NetForestDomain

Map Trusts

Get-NetDomainTrust

Map all Trusts

Get-NetForestDomain | Get-NetDomainTrust

Map Only External Trusts

Get-NetForestDomain  | Get-NetDomainTrust | ?{$_.TrustType -eq 'External'}

Extract Info From Forest

Get-NetForestDomain -Forest eurocorp.local | Get-NetDomainTrust